package com.example.atry;

import androidx.appcompat.app.AppCompatActivity;
import android.widget.Button;
import android.os.Bundle;
import android.view.View;
import android.content.Intent;

public class MainActivity extends AppCompatActivity {

    private Button relative;
    private Button containerLinearLayout;
    private Button zhen;
    private Button biaoge;
    private Button xiangdui;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        relative =findViewById(R.id.button_goto_relative);
        relative.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent intent = new Intent(MainActivity.this, wangge.class);
                startActivity(intent);
            }
        });

        containerLinearLayout=findViewById(R.id.button_goto_xianxing);
        containerLinearLayout.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent intent = new Intent(MainActivity.this, xianxing.class);
                startActivity(intent);
            }
        });

        zhen=findViewById(R.id.button_goto_zhen);
        zhen.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent intent = new Intent(MainActivity.this, zhen.class);
                startActivity(intent);
            }
        });

        biaoge=findViewById(R.id.button_goto_biaoge);
        biaoge.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent intent = new Intent(MainActivity.this, biaoge.class);
                startActivity(intent);
            }
        });

        xiangdui=findViewById(R.id.button_goto_xiangdui);
        xiangdui.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                Intent intent = new Intent(MainActivity.this, xiangdui.class);
                startActivity(intent);
            }
        });
    }

}
